package com.itheima.sh.d_method_04;

public class forfor_sum {
    public static void main(String[] args) {
        int sum=0;
        for (int i = 1; i <= 5; i++) {
            sum=sum+i;
        }
        System.out.println("和值是："+sum);
    }

}
